home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Serial / s / SetStatus < prev    next >
Text File  |  1995-08-26  |  1KB  |  33 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Serial.s.SetStatus
  11. ;   Author:  Copyright © 1993 Jason Howat
  12. ;   Version: 1.00 (21 Nov 1993)
  13. ;   Purpose: Configure state of serial system.
  14.  
  15.         GET     ^.h.regdefs
  16.         GET     ^.h.swinos
  17.         GET     ^.h.macros
  18.  
  19. ; os_error *Serial_SetStatus(int eor_mask, int and_mask);
  20.  
  21.         PREAMBLE
  22.         STARTCODE Serial_SetStatus
  23. ;
  24.         STMFD   sp!, {lr}
  25.         MOV     a3, a2
  26.         MOV     a2, a1
  27.         MOV     a1, #0
  28.         SWI     SWI_OS_SerialOp + XOS_Bit
  29.         MOVVC   a1, #0
  30.         LDMFD   sp!, {pc}^
  31. ;
  32.         END
  33.